package com.ithei.多线程第二天.并发工具类.countDownLatch;

import java.util.concurrent.CountDownLatch;

public class HuiYi extends  Thread{
    CountDownLatch countDownLatch;

    public HuiYi(CountDownLatch countDownLatch) {
        this.countDownLatch = countDownLatch;
    }

    @Override
    public void run() {
        try {
            countDownLatch.await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        System.out.println(getName()+"的会议开始..........");
    }
}
